<?php

class ForgotPasswordForm extends CFormModel {

    public $email;

    /**
     * Declares the validation rules.
     */
    public function rules() {
        return array(
            array('email', 'required'),
            array('email', 'email'),
            array('email', 'exist', 'className' => 'User', 'attributeName' => 'email', 'message' => Yii::t('yii', 'Email address not found!')),
        );
    }
    
        /**
     * Declares attribute labels.
     */
    public function attributeLabels() {
        return array(
            'email' => Yii::t('yii', 'Email'),
        );
    }

    

}
